package org.dromara.pay.domain.bo;

import org.dromara.pay.domain.PayActivityOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 订单业务对象 pay_activity_order
 *
 * @author yf
 * @date 2024-07-22
 */
@Data
@AutoMapper(target = PayActivityOrder.class, reverseConvertGenerate = false)
public class PayActivityOrderBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空", groups = {EditGroup.class})
    private Integer orderId;
    /**
     * 订单名称
     */
    private String subject;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
     private Integer createBy;
    /**
     * 活动报名ID
     */
    private Integer activityRegistrationId;
    /**
     * 总金额
     */
    private BigDecimal totalAmount;
    /**
     * 联系电话
     */
    private String contactPhone;
    /**
     * 付款方式（0=支付宝，1=微信支付，2=银联）
     */
    private String paymentMethod;
    /**
     * 订单状态（0=未支付，1=已支付）
     */
    private String orderStatus;
    /**
     * 到场二维码图片
     */
    private String qrCodeImage;
}
